package com.gl.goods.base;

/**
 * Time; 2020/3/11
 * Author: hmc
 * Description:静态参数
 */
public class HXYXConstant {
    /**
     * 是否第一次打开应用
     */
    public static final String FIRST_OPEN = "first_open";
    /**
     * 城市选择json数据
     */
    public static final String CITY_DATA = "china_city_data.json";
    /**
     * 保存UUID
     */
    public static final String UUID = java.util.UUID.randomUUID() + "";
    /**
     * 每页显示默认数量
     */
    public static int PAGE_SIZE_10 = 10;
    /**
     * 提交订单选择地址resultCode
     */
    public static final String CHOOSE_ADDRESS_RESULT_CODE = "CHOOSE_ADDRESS_RESULT_CODE";
    /**
     * 用户选择开户银行resultCode
     */
    public static final String CHOOSE_BANK_RESULT_CODE = "CHOOSE_BANK_RESULT_CODE";
    /**
     * 自己的推荐人
     */
    public static final String User_Extension = "User_Extension";
    /**
     * 其他推荐人
     */
    public static final String Other_Extension = "Other_Extension";
    /**
     * 订单相关状态 0.待付款、1.待发货、2.待收货、3.交易成功、4.交易关闭
     *  5 寄拍处理中, 6 待寄拍, 7 寄拍中, 8 寄拍完成
     */
    public static int FOR_PAYMENT = 0;
    public static int FOR_SEND = 1;
    public static int SHIPPED = 2;
    public static int ORDER_SUCCESS = 3;
    public static int ORDER_CLOSE = 4;
    public static int JP_PROCESSING = 5;
    public static int JP_READY = 6;
    public static int JP_ING = 7;
    public static int JP_FINISH = 8;

    /**
     * TODO 感觉订单状态这缺点东西,以后有需要再加
     * 订单状态枚举
     */
    public enum OrderStatus {
        FOR_PAYMENT("待付款", "后关闭订单", 0),
        FOR_SEND("待发货", "", 1),
        SHIPPED( "待收货", "", 2),
        ORDER_SUCCESS( "交易成功", "", 3),
        ORDER_CLOSE( "交易关闭", "交易已关闭", 4);

        private String message;
        private String description;
        private int position;
        public String getMessage() {
            return message;
        }
        public void setMessage(String message) {
            this.message = message;
        }
        public String getDescription() {
            return description;
        }
        public void setDescription(String description) {
            this.description = description;
        }
        public int getPosition() {
            return position;
        }
        public void setPosition(int position) {
            this.position = position;
        }

        OrderStatus(String message, String description, int position) {
            this.message = message;
            this.description = description;
            this.position = position;
        }
    }
}
